package com.softtown.modules.sys.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * 菜单入参DTO
 *
 * @author Dingyayong
 * @version v1.0
 * @create 2019-05-31 16:13
 **/
@Data
@ApiModel(value = "菜单传入DTO")
public class SysSetMenuDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    @NotNull
    @NotEmpty
    @ApiModelProperty(value = "菜单id")
    private Long appId;

    @NotNull(message="{sysmenu.pid.require}")
    @NotEmpty(message="{sysmenu.pid.require}")
    @ApiModelProperty(value = "公司id")
    private Long companyId;
}

